package com.tico.translatereditor.service;

import com.alibaba.fastjson.JSONObject;
import com.tico.common.service.BaseService;
import com.tico.common.utils.BaseQuery;
import com.tico.common.utils.QueryResult;
import com.tico.translatereditor.domain.KeyValuePair;
import com.tico.translatereditor.domain.TranslaterData;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 */
public interface KeyValuePairService extends BaseService<KeyValuePair> {

   KeyValuePair findById(Serializable id);

 List<KeyValuePair> findByIds(List<String> ids);


    int insertBatch(List<KeyValuePair> keyValuePairs);

    int insert(KeyValuePair keyValuePair);

    int delete(Serializable id);

    int remove(Serializable id);

    QueryResult<KeyValuePair> findPageInfo(BaseQuery baseQuery);

    List<KeyValuePair> findByNamedParamList (Map<String,Object> param);

    JSONObject change(JSONObject jsonObject, HashMap<String,String> map);

    String translaterMsg(TranslaterData translaterData);

    void translaterMsgToTopic(String  translaterId,String data);
}
